package com.world.business.user.domain.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * user新增
 *
 * @author: 邓驴
 * @date: 2023/5/13 20:21
 **/
@Data
@ApiModel(value = "user新增")
public class UserUpdateRequest {

    @NotNull(message = "Id必填")
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("年龄")
    private Integer age;

    /**
     * 性别，0女，1男，2未知
     */
    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("图片")
    private String picUrl;

    @ApiModelProperty("地区")
    private Long areaId;

    @ApiModelProperty("详细地址")
    private String address;

    @ApiModelProperty("所属教派")
    private Long religiousSectId;

    @ApiModelProperty("信仰id")
    private Long beliefId;

    @ApiModelProperty("所属种族")
    private Long raceId;

    @ApiModelProperty("出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime birthday;

    @ApiModelProperty("境界id")
    private Long realmId;

    @ApiModelProperty("体质id")
    private Long constitutionId;

    @ApiModelProperty("死亡日期")
    private LocalDateTime deathday;

    @ApiModelProperty("死亡原因")
    private String dieReason;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("类型")
    private String type;
}

